import service from '../utils/request.js'; // 引入二次封装的 axios

export const batchDeleteVideo = (ids) => {
    return service.post(`/api/admin/video/batchDelete`,ids)
}
export const queryVideo = (id) => {
    return service.get(`/api/admin/video/detail/${id}`)
}
export const deleteVideo = (id) => {
    return service.get(`/api/admin/video/delete/${id}`)
}
export const queryList = (params) => {
    return service.post('/api/admin/video/querylist', params)
}
export const addVideo = (params) => {
    return service.post('/api/admin/video/add', params)
}
export const updateVideo = (params) => {
    return service.post('/api/admin/video/update', params)
}


export const clientListVideo = (params) => {
    return service.post('/api/client/video/list', params)
}

export const getVideoDetail = (id) => {
    return service.get(`/api/client/video/detail/${id}`);
};